package ar.com.listeners;

import objetos.MainObjc;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import ar.com.gastos.MainActivity;

public class TarjetaListener implements OnCheckedChangeListener {

	private MainObjc mainObjc;
	
	public TarjetaListener(MainObjc mainObjc) {
		this.mainObjc = mainObjc;
	}

	
	public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
		
		
		if (isChecked){
			
			
			mainObjc.setOnDebito();
			
			
		}else {
			
			mainObjc.setOffDebito();
			
		}
		

	}

}
